package com.hoten.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hoten.common.utils.PageUtils;
import com.hoten.gulimall.member.entity.MemberEntity;
import com.hoten.gulimall.member.exception.PhoneExsitException;
import com.hoten.gulimall.member.exception.UsernameExsitException;
import com.hoten.gulimall.member.vo.MemberLoginVo;
import com.hoten.gulimall.member.vo.MemberRegistVo;
import com.hoten.gulimall.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author hotenchen
 * @email 529023124@qq.com
 * @date 2021-10-09 23:39:53
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo vo);

    void checkPhoneUnique(String phone) throws PhoneExsitException;

    void checkUsernameUnique(String username) throws UsernameExsitException;

    MemberEntity login(MemberLoginVo vo);

    MemberEntity login(SocialUser socialUser);

}

